package com.dragon.design.pattern.structural.adapter.objectadapter;

/**
 * 利用组合的方式进行适配
 *
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/18 8:13
 */
public class Adapter implements Target {

    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        adaptee.adapteeRequest();
    }
}
